<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>

<head>
    <title>系统登录界面</title>
    <!-- Meta-Tags -->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- style CSS -->
    <link rel="stylesheet" href="static/css/loginStyle.css" type="text/css" media="all">
    <script type="text/javascript" src="static/js/jquery-1.4.2.js"></script>
    <script type="text/javascript" src="static/js/service.js"></script>
</head>

<body onkeydown="keyLogin();">

<section class="main" style="background: url(static/image/bg.png)">
    <div class="logo text-center">
        <h1><a href="index.jsp">欢迎登录</a></h1>
    </div>
    <div class="content-w3ls text-center">
        <img src="static/image/admin.png" alt="" class="img-responsive">
        <form action="HomePage" method="post">
        <table>
            <tr>
                <td>
                    <div class="wthree-field">
                        <input name="username" id="text1" type="text" placeholder="Username">
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="wthree-field">
                        <input name="password" id="myInput" type="Password" placeholder="Password">
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="wthree-field">
                        <button type="submit" class="btn" id="login">登录</button>
                    </div>
                </td>
            </tr>
        </table>
        </form>
        
    </div>
    <div class="copyright">
        <p>© Designed by | CCNU 19AI5 ZDG</p>
    </div>
</section>
</body>
<script type="text/javascript">
    $(function () {
        //调用方法
        doLogin();
    });
    function keyLogin(){
        if (event.keyCode==13)  //回车键的键值为13
            document.getElementById("login").click();  //调用登录按钮的登录事件
    }
</script>
</html>